package com.factory_shili;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context= new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        User user= (User) context.getBean("bean2");
        System.out.println(user);
    }
}
